home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr28 / par300.zip / EXAMPL01.STX < prev    next >
Text File  |  1995-04-12  |  2KB  |  25 lines

  1. ;C
  2. ┌─────────────────────────────────────────────────────────────────────────────┐
  3. │ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░    EXAMPLE # 1    ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ │
  4. └─────────────────────────────────────────────────────────────────────────────┘
  5. ┌─────────────────────────────────────────────────────────────────────────────┐
  6. │                                                                             │
  7. │ THE INPUT FILE:  "John Doe's List of Things to Do This Week"                │
  8. │                                                                             │
  9. │ WHAT WE WANT:    Extract from the file only those items that are not yet    │
  10. │                  done, according to a code indicating the status of each    │
  11. │                  task.                                                      │
  12. │                                                                             │
  13. │ HOW WE DO IT:    We ignore any lines that contain a space, X or P in        │
  14. │                  column 2.  This gives us what we want because:             │
  15. │                                                                             │
  16. │                  ─  A space is found in column 2 on all non-data lines      │
  17. │                                                                             │
  18. │                  ─  "X"  is found there on items that are "Done"            │
  19. │                                                                             │
  20. │                  ─  "P"  is found there on items that are "Postponed"       │
  21. │                                                                             │
  22. └─────────────────────────────────────────────────────────────────────────────┘
  23.  
  24. ;P
  25.